
import { _decorator, Component, Node, CCInteger, CCFloat, CCBoolean, Label } from 'cc';
const { ccclass, property ,executeInEditMode} = _decorator;
/**
 * DateTime = Sun Feb 27 2022 11:30:07 GMT+0800 (中国标准时间)
 * Author = carlosyzy
 */
@ccclass('Test0')
// @executeInEditMode 
@executeInEditMode(true)
export class Test0 extends Component {
    @property({type:Node})
    n:Node=null;
    @property({type:CCInteger})
    a:number=5;
    @property({type:CCFloat})
    b:number=0.5;
    @property({})
    c:boolean=true;

   
    onLoad(){
        console.log("onLoad");
    }
    start () {
        console.log("start");
    }
    update (deltaTime: number) {
        // [4]
    }
}

/**
 * [1] Class member could be defined like this.
 * [2] Use `property` decorator if your want the member to be serializable.
 * [3] Your initialization goes here.
 * [4] Your update function goes here.
 *
 * Learn more about scripting: https://docs.cocos.com/creator/3.4/manual/zh/scripting/
 * Learn more about CCClass: https://docs.cocos.com/creator/3.4/manual/zh/scripting/ccclass.html
 * Learn more about life-cycle callbacks: https://docs.cocos.com/creator/3.4/manual/zh/scripting/life-cycle-callbacks.html
 */
